package com.ruoyi.web.controller.mall.orderDetail.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 订单详情对象 order_detail
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class OrderDetail //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String goodsId;

    /** 产品规格ID */
    @Excel(name = "产品规格ID")
    private String productId;

    /** 数量 */
    @Excel(name = "数量")
    private Long total;

    /** 删除标记 */
    private Integer delFlag;

    /** 0未评价  1已评价 */
    @Excel(name = "0未评价  1已评价")
    private Integer coment;

    /** 单价 */
    @Excel(name = "单价")
    private Double price;

    /** 总价 */
    @Excel(name = "总价")
    private Double allPrice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setComent(Integer coment) 
    {
        this.coment = coment;
    }

    public Integer getComent() 
    {
        return coment;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setAllPrice(Double allPrice) 
    {
        this.allPrice = allPrice;
    }

    public Double getAllPrice() 
    {
        return allPrice;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("productId", getProductId())
            .append("total", getTotal())
            .append("delFlag", getDelFlag())
            .append("coment", getComent())
            .append("price", getPrice())
            .append("allPrice", getAllPrice())
            .append("createAt", getCreateAt())
            .toString();
    }
}
